package com.ckerchina.admin.ckadmin.domain;


import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;

import com.ckerchina.admin.ckadmin.domain.IdEntity.IdEntityAuto;

@Entity
public class AgentUser extends IdEntityAuto {
	private static final long serialVersionUID = 9206033027073483217L;

	/** 代理商名称 */
	@Column(length = 20) 
	private String agentName;
	
	/** 代理商法人姓名 */
	@Column(length = 20) 
	private String agentheaderName;

	/** 手机号 */
	@Column(length = 20)
	private String mobile;
	
	/** 剩余金额 */
	private Float leftMoney;
	
	/** 消费总金额 */
	private Float totalUsedMoney;
	

	/** 折扣 */
	private float discount;
    
    /** 新增时间 */
    private Date createTime;
    
    /** 更新时间 */
    private Date updateTime;

	private String token;
	

  
    
	@Column(columnDefinition="int(2)")
	private int state;
	
	

	/**
	 * 三码合一
	 */
	private String licence;

    public String getLicence() {
		return licence;
	}

	public void setLicence(String licence) {
		this.licence = licence;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	public String getAgentName() {
		return agentName;
	}

	public void setAgentName(String agentName) {
		this.agentName = agentName;
	}

	public String getAgentheaderName() {
		return agentheaderName;
	}

	public void setAgentheaderName(String agentheaderName) {
		this.agentheaderName = agentheaderName;
	}

	public Float getLeftMoney() {
		return leftMoney;
	}

	public void setLeftMoney(Float leftMoney) {
		this.leftMoney = leftMoney;
	}

	public Float getTotalUsedMoney() {
		return totalUsedMoney;
	}

	public void setTotalUsedMoney(Float totalUsedMoney) {
		this.totalUsedMoney = totalUsedMoney;
	}

	public float getDiscount() {
		return discount;
	}

	public void setDiscount(float discount) {
		this.discount = discount;
	}

	public static long getSerialversionuid() {
		return serialVersionUID; 
	}
}
